package com.wusuowei.shiro_jwt.model.po;

import com.baomidou.mybatisplus.annotation.*;

import java.math.BigDecimal;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

import lombok.Data;

/**
 * 
 * 
 * @author 夏沫止水
 * @email HeJieLin@gulimall.com
 * @date 2024-05-01 14:03:02
 */
@Data
@TableName("product")
public class Product implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId(value = "id", type = IdType.AUTO)
	private Integer id;
	/**
	 * 图片名称
	 */
	@TableField("pro_name")
	private String proname;
	/**
	 * 
	 */
	@TableField("pro_price")
	private BigDecimal proprice;
	/**
	 * 图片url
	 */
	@TableField("p_avatar_url")
	private String pavatarUrl;
	/**
	 * 
	 */
	@TableField("cid")
	private Integer cid;
	/**
	 * 
	 */
	@TableField(value = "create_time", fill = FieldFill.INSERT)
	private LocalDateTime createTime;
	/**
	 * 是否删除
	 */
	@TableLogic(value = "0",delval = "1")
	@TableField("is_delete")
	private Integer isDelete;

	/**
	 * 详细信息
	 */
	@TableField("introduction")
	private String introduction;


	/**
	 * 用户权限
	 */
	@TableField(exist = false)
	private List<Role> role;
	/**
	 * 分类
	 */

	@TableField(exist = false)
	private Category category;


}
